package com.demo.po.base;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * 分页参数
 */
public class PageBean extends BaseBean {

    private int pagestart;
    private int pagesize = 10;
    private int curpage = 1; /* 当前页码 */

    public PageBean() {
    }

    @JsonIgnore
    public int getPagestart() {
        return pagestart;
    }

    @JsonProperty
    public void setPagestart(int pagestart) {
        this.pagestart = pagestart;
    }

    @JsonIgnore
    public int getPagesize() {
        return pagesize;
    }

    @JsonProperty
    public void setPagesize(int pagesize) {
        this.pagesize = pagesize;
    }

    @JsonIgnore
    public int getCurpage() {
        return curpage;
    }

    @JsonProperty
    public void setCurpage(int curpage) {
        this.curpage = curpage;
    }
}
